package com.ms.teapuesto.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;


/**
 * Created by RAZANERO on 26/08/14.
 */
@Entity
@Table(name = "TM_LIGA", schema = "PUBLIC")
public class Liga {

    @Id
    private String nombre;

    private String url;

    private String url_campeonato;

    private String leagueId;

    private String leagueName;

    @Column(name = "LEAGUENAME_PREDICTZ")
    private String leagueNamePredictz;

    @Column(name = "URL_PREDICTZ")
    private String urlPredictz;

    @Column(name = "LEAGUENAME_WINDRAWWIN")
    private String leagueNameWinDrawWin;


    public Liga(String nombre, String leagueId) {
        this.nombre = nombre;
        this.leagueId = leagueId;
    }

    public Liga(String nombre, String leagueId, String leagueName) {
        this.nombre = nombre;
        this.leagueId = leagueId;
        this.leagueName = leagueName;
    }

    public Liga(String nombre, String leagueId, String leagueName,String leagueNamePredictz,String urlPredictz,String leagueNameWinDrawWin) {
        this.nombre = nombre;
        this.leagueId = leagueId;
        this.leagueName = leagueName;
        this.urlPredictz = urlPredictz;
        this.leagueNamePredictz = leagueNamePredictz;
        this.leagueNameWinDrawWin= leagueNameWinDrawWin;
    }

    public Liga() {
    }

    public String getNombre() {
        return nombre;
    }

    public void setNombre(String nombre) {
        this.nombre = nombre;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getLeagueId() {
        return leagueId;
    }

    public void setLeagueId(String leagueId) {
        this.leagueId = leagueId;
    }


    @Override
    public String toString() {
        return "Liga{" +
                "nombre='" + nombre + '\'' +
                ", url='" + url + '\'' +
                '}';
    }

    public String getUrl_campeonato() {
        return url_campeonato;
    }

    public void setUrl_campeonato(String url_campeonato) {
        this.url_campeonato = url_campeonato;
    }


    public boolean hasLeagueId(String leagueId) {
        return leagueId.equals(this.leagueId);
    }


    public String getLeagueName() {
        return leagueName;
    }

    public void setLeagueName(String leagueName) {
        this.leagueName = leagueName;
    }

    public String getLeagueNamePredictz() {
        return leagueNamePredictz;
    }

    public void setLeagueNamePredictz(String leagueNamePredictz) {
        this.leagueNamePredictz = leagueNamePredictz;
    }

    public String getUrlPredictz() {
        return urlPredictz;
    }

    public void setUrlPredictz(String urlPredictz) {
        this.urlPredictz = urlPredictz;
    }

    public String getLeagueNameWinDrawWin() {
        return leagueNameWinDrawWin;
    }

    public void setLeagueNameWinDrawWin(String leagueNameWinDrawWin) {
        this.leagueNameWinDrawWin = leagueNameWinDrawWin;
    }

}
